//@author A0087191Y
package net.mysoc.w111j.service;

import java.util.Arrays;
import java.util.List;

/**
 * Report types.
 */
public enum ReportType {
    DAILY("Daily"),
    WEEKLY("Weekly"),
    MONTHLY("Monthly"),
    YEARLY("Yearly");

    private final String name;

    /**
     * Get all report types in a list.
     *
     * @return a list of all report types.
     */
    public static List<ReportType> getAll() {
        return Arrays.asList(ReportType.values());
    }

    private ReportType(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }
}
